/* 移动端导航样式 */

/* 汉堡菜单按钮 */
.mobile-nav-toggle {
  display: none;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
  background-color: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.mobile-nav-toggle.active {
  transform: translateY(-50%) rotate(90deg);
}

/* 移动端导航菜单 */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  z-index: 1999;
  transition: all 0.3s ease;
  overflow-y: auto;
  padding-top: 0;
}

.mobile-nav.active {
  left: 0;
}


/* 当导航菜单打开时，隐藏原始的汉堡菜单按钮 */
.mobile-nav.active ~ .mobile-nav-overlay + .nav-container .mobile-nav-toggle {
  display: none;
}

/* 移动端导航头部 */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px; /* 减小顶部和底部padding */
  border-bottom: 1px solid var(--light-gray);
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 2000;
}

/* 移动端导航内部Logo */
.mobile-nav-logo img {
  max-height: 40px;
}

/* 移动端导航内部关闭按钮 */
.mobile-nav-header .mobile-nav-toggle {
  position: static;
  top: auto;
  right: auto;
  transform: none;
}

/* 移动端导航遮罩 */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 移动端导航列表 */
.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--light-gray);
}

.mobile-nav-link {
  display: block;
  padding: 10px 20px; /* 减小顶部和底部padding */
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 15px; /* 略微减小字体大小 */
  font-weight: 500;
  transition: all 0.3s ease;
  line-height: 1.4; /* 设置行高，使文字更加紧凑 */
}

/* 移动端下拉菜单 */
.mobile-dropdown {
  position: relative;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 20px; /* 减小顶部和底部padding */
  color: var(--dark-gray);
  font-size: 15px; /* 略微减小字体大小 */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.4; /* 设置行高 */
}

.mobile-dropdown-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  list-style: none;
  padding: 0;
}

.mobile-dropdown-link {
  display: block;
  padding: 8px 20px; /* 减小顶部和底部padding */
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 13px; /* 略微减小字体大小 */
  transition: all 0.3s ease;
  line-height: 1.4; /* 设置行高 */
}

/* 免费试算按钮 */
.mobile-nav-cta {
  padding: 15px 20px; /* 减小顶部和底部padding */
  text-align: center;
}

.mobile-nav-btn {
  display: inline-block;
  padding: 10px 30px; /* 减小顶部和底部padding */
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  line-height: 1.4; /* 设置行高 */
}

.mobile-nav-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

/* 响应式断点 - 仅在小屏幕上显示移动端导航 */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  
  /* 隐藏桌面端导航 */
  .nav-container nav {
    display: none;
  }
}